package com.laoyang.dtp;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.core.env.Environment;

/**
 * @author:Kevin
 * @create: 2023-10-24 18:36
 * @Description: 动态线程池核心配置类
 */
@Configuration
@EnableConfigurationProperties(DtpProperties.class)
@Import({DtpImportBeanDefinationRegister.class, DtpBeanPostProcessor.class})
public class DtpExecutorAutoConfiguration {


    @Bean
    public NacosLinsenter NacosLinsenter(){
        return new NacosLinsenter();
    }

    @Bean
    public DtpMonitor dtpMonitor(){
        return new DtpMonitor();
    }


}
